package app.species.ANN;

public class OutputNeuron extends Neuron {

	private static final long serialVersionUID = -5895540358062737712L;
	private double output;
	private int usageID;

	public OutputNeuron(Soma s, int useID, Axon[] in, Axon[] out) {
		super(s, in, out);
		this.output = 0.0;
		usageID = useID;
	}

	public double getOutput() {
		return this.output;
	}

	public void fire() {

		super.fire();
		this.output = this.soma.output;

//		double sum = 0.0;

	}
	
	public void setUsageID(int ID){
		assert(ID >= 0):"negative usageID not allowed: " + ID;
		usageID = ID;		
	}
	public int getUsageID(){
		return usageID;
	}

}
